// Dom7
var $$ = Dom7;

// Framework7 App main instance
var app = new Framework7({
    root: '#app', // App root element
    id: 'io.framework7.testapp', // App bundle ID
    name: 'Framework7', // App name
    theme: 'auto', // Automatic theme detection
    // Enable swipe panel
    panel: {
        swipe: 'left',
    },
    view: {
        stackPages: true, // 多级页面缓存
        pushState: true, // 开启 url 根据路由 hash 变化, 多 tab 的页面设置后不会切换
    },
    // App root data
    data: function() {
        return {
            // Demo products for Catalog section
            products: [{
                id: '1',
                title: '表格',
                description: '表格表格'
            }, ]
        };
    },
    // App routes
    // routes: routes,
});

// Init/Create views
var homeView = app.views.create('#view-home', {
    url: '/'
});
// var catalogView = app.views.create('#view-catalog', {
//     url: '/catalog/'
// });
// var settingsView = app.views.create('#view-settings', {
//     url: '/settings/'
// });